﻿namespace GX.src.Data
{
    static public class DataManager
    {
        static IDataManager _mgr;
        static IDataManager mgr
        {
            get
            {
                if (null == _mgr)
                    _mgr = App.GetService(App.SERVICE_DATA_MANAGER) as IDataManager;
                return _mgr;
            }
        }
        static public bool Register(int id, IAppData data)
        {
            return mgr.Register(id,data);
        }
        static public IAppData Get(int id)
        {
            return mgr.Get(id);
        }
    }
}
